Smush\Core\Parser\Element A

Total Complexity 70
Dependencies 4
Dependents 12
Total lines 438
Lines of code 262
Logical lines of code 117
Comment lines 88
Methods 40
Properties 15

Methods 40

Method Rating Maintainability Complexity Lines of code
has_updates()
S
64 5 10
replace_attributes()
S
58 3 17
get_image_attribute_names()
S
52 2 30
get_updated_markup()
S
58 3 15
update_attributes()
S
63 3 12
update_css_properties()
S
63 3 12
remove_attribute()
S
63 3 11
prepare_image_attributes()
S
65 3 10
get_attribute()
S
67 3 8
get_background_css_property()
S
67 3 8
get_image_attributes()
S
72 2 6
add_or_update_attribute()
S
69 2 7
find_quote_character()
S
77 2 3
change_attribute_quote_character()
S
69 2 7
remove_attributes()
S
68 2 7
add_new_attributes()
S
66 2 8
get_attribute_value()
S
71 2 6
append_attribute_value()
S
66 2 8
has_wrapper_markup()
S
78 2 3
__construct()
S
65 1 9
get_markup()
S
82 1 3
get_tag()
S
82 1 3
get_attributes()
S
82 1 3
add_attribute()
S
75 1 4
replace_attribute()
S
76 1 4
set_has_updates()
S
81 1 3
get_css_properties()
S
82 1 3
add_css_property()
S
76 1 4
set_postfix()
S
81 1 3
add_postfix()
S
80 1 3
is_image_element()
S
80 1 3
has_attribute()
S
79 1 3
set_wrapper_markup()
S
77 1 4
can_wrap_element()
S
75 1 4
is_lcp()
S
82 1 3
set_lcp()
S
81 1 3
get_position()
S
82 1 3
set_position()
S
81 1 3
get_original()
S
81 1 3
get_updated()
S
81 1 3